package cc.home.work.demo2;

//要求在控制台输出”HelloWorld”

public interface Inter {
    void show();
}

class Outer {
    //补齐代码
    public static Inter method(){
        Inter a = new A();
      //  a.show();
        return a;
    }
}

class A implements Inter {
    public void show() {
        System.out.println("HelloWorld");
    }
}

 class OuterDemo {
    public static void main(String[] args) {
        //调用方法method().show()必须要返回值
        Outer.method().show();
    }
}


